<?php
session_start();
require_once('session.php');
require_once('../inc/conn.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<?php
if($_GET['deal']=='yes'){
    mysql_query("UPDATE guestbook set deal='是' WHERE id='".$_GET['id']."'");
    echo "<script>alert('已设置为\"已处理\"!');window.location.href='guestbook.php';</script>";
}
if($_GET['deal']=='no'){
    mysql_query("UPDATE guestbook set deal='否' WHERE id='".$_GET['id']."'");
    echo "<script>alert('已设置为\"未处理\"!');window.location.href='guestbook.php';</script>";
}

mysql_close($conn);
?>
</body>
</html>